Ubuntu 14.04 Install Zathura Git Version
Install girara
git clone git://pwmt.org/girara.git make make install
If you encounter an error when doing make
xlzhang@mesecina:~/code/girara$ make The minium required version of GTK is 3.2 make: *** [.version-checks/GTK] Error 1
This is because libgirara
dependens on GTK+3
, so install libgtk-3-dev
first.
sudo apt-get install libgtk-3-dev
Then make
again may result in another error:
xlzhang@mesecina:~/code/girara$ make [CC] callbacks.c cc: error: unrecognized command line option ‘-fdiagnostics-color=always’ make: *** [callbacks.o] Error 1
This is because that diagonistics-color
is an option not introduced until GCC 4.9. By checking gcc --version
, we found that the default gcc version on Ubuntu 14.04:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Install GCC 4.9 on Ubuntu 14.04
To install gcc 4.9 on Ubuntu 14.04, you can install the upstream version of GCC from Ubuntu Toolchain PPA.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.9
Set GCC 4.9 as the default gcc
Remove the previous gcc version from the default applications list (if already exists)
sudo update-alternatives --remove-all gcc
Make GCC 4.9 the default compiler on the system
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 sudo update-alternatives --config gcc
Now check the gcc version with gcc --version
again
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Install Girara
Now you can install girara by make insatll
.
Install Zathura
git clone git://pwmt.org/zathura.git cd zathura git checkout --track -b develop origin/develop make make install
If you see error as follows:
zathura/content-type.c:11:19: fatal error: magic.h: No such file or directory #include <magic.h> ^ compilation terminated. make: *** [build/release/zathura/content-type.o] Error 1
Install libmagic-dev
.
If you see error as follows:
zathura/database-sqlite.c:3:21: fatal error: sqlite3.h: No such file or directory #include <sqlite3.h> ^ compilation terminated. make: *** [build/release/zathura/database-sqlite.o] Error 1
Install libsqlite3-dev
.
Can't view man pages
zathura needs Sphinx to build man pages, use
sudo apt-get install python-sphinx
How to use inverse search
Either use emacs daemon or emacs server so that emacsclient is useable. Then configure Emacs based on this post. Remember to install wmctrl for that.
By Control + Click